package com.lagou.sqlSession;

import java.util.List;

/**
 * @author cheng
 * @since 2021/7/4
 */
public interface SqlSession {

    // 查询所有
    public <E> List<E> selectList(String statementid, Object... params) throws Exception;

    // 根据条件查询单个
    public <T> T selectOne(String statementid, Object... params) throws Exception;

    // 添加一个user
    Integer addOne(String statementid, Object... params) throws Exception;

    // 更新一个用户信息
    Integer updateOne(String statementid, Object... params) throws Exception;

    // 删除一条用户信息
    Integer deleteOne(String statementid, Object... params) throws Exception;

}
